﻿<Window x:Class="WpfAppWcfRestConsumer.Views.AddCommentWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Add Comment " Height="300" Width="300" WindowStyle="ToolWindow">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="100"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock Text="Comment id:"/>
        <TextBlock Text="{Binding CommentId}" Grid.Column="1"/>

        <TextBlock Text="Comment head:" Grid.Row="1"/>
        <TextBox Text="{Binding CommentHead, Mode=TwoWay}" Grid.Column="1" Grid.Row="1"/>

        <TextBlock Text="Comment body:" Grid.Row="2"/>
        <TextBox Text="{Binding CommentBody, Mode=TwoWay}" Grid.Column="1" Grid.Row="2"/>

        <TextBlock Text="Time:" Grid.Row="3"/>
        <DatePicker Text="{Binding Time, Mode=TwoWay}" Grid.Column="1" Grid.Row="3"/>

        <StackPanel Grid.Row="4" Grid.ColumnSpan="2">
            <Button x:Name="btnAdd" Click="btnAdd_Click" Content="Add"/>
            <Button x:Name="btnCancel" Click="btnCancel_Click" Content="Cancel"/>
        </StackPanel>
    </Grid>
</Window>
